<!DOCTYPE html>
<html lang="en">
  <head>
		<meta charset="UTF-8">
		<meta content="yes" name="apple-mobile-web-app-capable" /> 
		<meta content="yes" name="apple-touch-fullscreen" />
		<meta content="telephone=no,email=no" name="format-detection" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<meta name="robots" content="nofollow">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  </head>
  <body>
   <noscript>
      <strong>We're sorry but vue-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
		<style type="text/css">
			html,body{
				width: 100%;
				height: 100%;
			}
			body{
				background-position: 50%;
			}
			#app{
				height: 100%;
				background-color: #fff;
				opacity: 0;
				transition:opacity .3s linear;
			}
			.tv-loading-complete #app{
				opacity:1;
			}
			.tv-loading-complete body{
				background: none !important;
			}
		</style>
    <div id="app"></div>
		<script type="text/javascript">
		  function jsonpDomain(result) {
				if( typeof(result) === 'string'){
					result = JSON.parse(result)
				}
		    window.domainInfo = result
		  }
		</script>
		<script src="http://cstaticdun.126.net/load.min.js?t=201903281201"></script>
		<script type="text/javascript" src="<%= htmlWebpackPlugin.options.base_url %>domain?callback=jsonpDomain"></script>
		<script type="text/javascript">
			if(window.domainInfo && 'is_official' in window.domainInfo){
				if(window.domainInfo.is_official){
					document.body.style.background = 'url(/static/images/mode1-no-live.png) no-repeat'
					document.body.style.backgroundSize = '60% auto'
					document.body.style.backgroundPosition = '50%'
				}else{
					document.body.style.background = 'url(/static/images/no-live.png) no-repeat'
					document.body.style.backgroundSize = '50% auto'
					document.body.style.backgroundPosition = '50%'
				}
			}else{
				document.body.style.background = 'url(/static/images/mode1-no-live.png) no-repeat'
				document.body.style.backgroundSize = '60% auto'
				document.body.style.backgroundPosition = '50%'
			}
			//防止没有捕获的promise异常出现
			window.addEventListener('unhandledrejection',function(e){
				e.preventDefault()
				console.log('捕获到异常:',e)
				return true
			})
		</script>
  </body>
</html>
